package xc.service;

import org.apache.dubbo.config.annotation.Service;
import xc.entity.User;

/**
 * ClassName:UserServiceImpl
 * Description:
 *
 * @Author chenxing
 * @Create 2025/6/19 15:45
 */

@Service(version = "1.0.0")
public class UserServiceImpl implements UserService {


    @Override
    public User getUserById(Integer userId) {

        System.out.println("收到请求，查询用户信息，userId = "+userId);

        User user = new User(userId, "xingchen", 25);
        return user;
    }
}
